package com.hydra.file.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hydra.base.comment.Comment;
import com.hydra.base.entity.IdEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;


/**
 * 文件服务实体
 * @Author Hydra
 * @Date 2022/6/4 15:21
 */
@ToString(callSuper = true)
@Comment("系统文件表")
@TableName(value = "sys_file")
@Accessors(chain = true)
public class SysFile extends IdEntity {

    @Comment("文件名称")
    @Getter @Setter
    private String fileName;

    @Comment("文件类型")
    @Getter @Setter
    private String fileType;

    @Comment("服务IP")
    @Getter @Setter
    private String serverIp;
    @Comment("服务端口")
    @Getter @Setter
    private String serverPort;

    @Comment("下载图片的路径")
    @Getter @Setter
    private String url;

    @Comment("保存的位置")
    @Getter @Setter
    private String path;

    @Comment("备注字段")
    @Getter @Setter
    private String remark;

    /**文件保存的中间路径，如果为空则用当前时间*/
    @TableField(exist = false)
    @Getter @Setter
    private String filePath;

}
